package cn.genmer.test.security.model.testClass;

import lombok.Getter;

/**
 * 《程序员的测试课》第一个例子
 */
@Getter
public class TodoItem {
    private String content;
    private boolean done;
    private long index;
    
    public TodoItem(final String content) {
        this.content = content;
        this.index = 1;
        this.done = false;
    }

    public void assignIndex(final long index) {
        this.index = index;
    }

    public void markDone() {
        this.done = true;
    }
}